// 基于template/src/views/{{appModules}}/{{pages@DEEDITVIEW2}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IEditView2Model } from "@/core/interface/view/model";
function getModel(): IEditView2Model {
    return {
        caption: "订单",
        title: "订单编辑视图(未提交)",
        capPSLanguageRes: "DE.LNAME.IBIZORDER",
        titlePSLanguageRes: "PAGE.TITLE.IBIZORDER.STATE10EDITVIEW2",
        showDataInfoBar: true,
        codeName: 'IBIZOrderState10EditView2',
        uiEngineModel: [
                    {
                        name: 'toolbar_deuiaction1_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction1',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'New',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_deuiaction2_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction2',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'RemoveAndExit',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem3_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem3',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Save',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem5_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem5',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'SaveAndExit',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem9_saveandstart_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem9_saveandstart',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'SaveAndStart',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem15_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem15',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Print',
                        entityCodeName: '',
                    }
            ],
        ctrls: [
            {
                name: 'toolbar',
                codeName: 'State10EditView2toolbar',
                controlType: 'TOOLBAR',
            },
            {
                name: 'drbar',
                codeName: 'Default',
                controlType: 'DRBAR',
            },
            {
                name: 'form',
                codeName: 'Form10',
                controlType: 'FORM',
            }
        ],
        ctrlParams: {
            IBIZOrdertoolbar: {},
            IBIZOrderdrbar: {},
            IBIZOrderform: {},
        },
        cssName: "",
        name: "IBIZOrderState10EditView2",
        viewType: "DEEDITVIEW2",
        viewStyle: "DEFAULT",
        showCaption: true,
        isLoadDefault: true,
        entityCodeName: "IBIZOrder",
        keyPSAppDEField: "IBIZOrderId",
        majorPSAppDEField: "IBIZOrderName",
        expandSearchForm:false,
        toolbarItems: [
            {
          		actionLevel: '100',
          		caption: '新建',
          		captionLanResTag: 'TBB.TEXT.*.NEW',
          		name: 'deuiaction1',
          		showCaption: true,
          		tooltip: '新建',
          		tooltipLanResTag: 'TBB.TOOLTIP.*.NEW',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-file-text-o',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'New',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'New',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_deuiaction1_click',
                  	actionTag: 'New',
                  	xDataCtrlName: 'form',
                  	predefinedType: 'EDITVIEW_NEWACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '删除并退出',
          		captionLanResTag: 'TBB.TEXT.EDITVIEW.REMOVEANDCLOSE',
          		name: 'deuiaction2',
          		showCaption: true,
          		tooltip: '删除并退出',
          		tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.REMOVEANDCLOSE',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-remove',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'RemoveAndExit',
          			uIActionMode: 'SYS',
          			actionTarget: 'SINGLEKEY',
          			uIActionTag: 'RemoveAndExit',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_deuiaction2_click',
                  	actionTag: 'RemoveAndExit',
                  	xDataCtrlName: 'form',
                  	predefinedType: 'EDITVIEW_REMOVEANDEXITACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '保存',
          		captionLanResTag: 'TBB.TEXT.*.SAVE',
          		name: 'tbitem3',
          		showCaption: true,
          		tooltip: '保存',
          		tooltipLanResTag: 'TBB.TOOLTIP.*.SAVE',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: 'deepskyblue-toolbar',
          		imagePath: '',
          		iconCls: 'fa fa-save',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Save',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'Save',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem3_click',
                  	actionTag: 'Save',
                  	xDataCtrlName: 'form',
                  	predefinedType: 'EDITVIEW_SAVEACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '保存并关闭',
          		captionLanResTag: 'TBB.TEXT.EDITVIEW.SAVEANDCLOSE',
          		name: 'tbitem5',
          		showCaption: true,
          		tooltip: '保存并关闭',
          		tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.SAVEANDCLOSE',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'sx-tb-saveandclose',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'SaveAndExit',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'SaveAndExit',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem5_click',
                  	actionTag: 'SaveAndExit',
                  	xDataCtrlName: 'form',
                  	predefinedType: 'EDITVIEW_SAVEANDEXITACTION',
                  }
            },
            {
          		name: 'tbitem8',
          		itemType: 'SEPERATOR',
            },
            {
          		actionLevel: '100',
          		caption: '开始流程',
          		captionLanResTag: '',
          		name: 'tbitem9_saveandstart',
          		showCaption: true,
          		tooltip: '开始流程',
          		tooltipLanResTag: '',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		dataAccessAction: 'WFSTART',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'SaveAndStart',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'SaveAndStart',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem9_saveandstart_click',
                  	actionTag: 'SaveAndStart',
                  	xDataCtrlName: 'form',
                  	predefinedType: 'EDITVIEW_SAVEANDSTARTWFACTION',
                  }
            },
            {
          		name: 'tbitem13',
          		itemType: 'SEPERATOR',
            },
            {
          		actionLevel: '100',
          		caption: '打印',
          		captionLanResTag: 'TBB.TEXT.*.PRINT',
          		name: 'tbitem15',
          		showCaption: true,
          		tooltip: '打印',
          		tooltipLanResTag: 'TBB.TOOLTIP.*.PRINT',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-print',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Print',
          			uIActionMode: 'SYS',
          			actionTarget: 'SINGLEKEY',
          			uIActionTag: 'Print',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem15_click',
                  	actionTag: 'Print',
                  	xDataCtrlName: 'form',
                  	predefinedType: 'EDITVIEW_PRINTACTION',
                  }
            },
        ],
        toolbarLogics: [
            ]     ,
        xDataCtrlName: "form",
        quickSearchPlaceholder: ['订单名称',].join(","),
        useDefaultLayout: true,
    }
}
export const model = getModel();